import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";
import CoffeeView from "../views/CoffeeView"
import EngageView from "../views/EngageView"
import ActivityView from "../views/ActivityView"
import AppView from "../views/AppView"
import SearchView from "../views/SearchView"


import All from "../components/All/All"
import Questions from "../components/Questions/Questions"
import Essay from "../components/Essay/Essay"

import AboutUs from '../components/Coffee/AboutUs.vue'

<<<<<<< HEAD:src/router/index.js
=======



import FaXian from "../components/sons/FaXian"
import ZuiRe from "../components/sons/ZuiRe"
import BiDuan from "../components/sons/BiDuan"
import DaiHuida from "../components/sons/DaiHuida"
import MianShi from "../components/sons/MianShi"
import NaMe from "../components/sons/NaMe"
import RiBao from "../components/sons/RiBao"
import ShuJu from "../components/sons/ShuJu"
import ZuanLan from "../components/sons/ZuanLan"

>>>>>>> 861c1d8236d8da03aed4b61c73118a4dcef4c00a:src1/router/index.js
Vue.use(VueRouter);

const routes = [
    // 首页
    {
        path: "/",
        name: "home",
        component: HomeView,
    },
    // 咖啡日报
    {
        path: "/coffee",
        name: "Coffee",

        component: CoffeeView,
        children: [
<<<<<<< HEAD:src/router/index.js
            { path: 'aboutUs', component: AboutUs },
            {
                path: 'aboutMs',
                component: () =>
                    import ('../components/Coffee/AboutMs.vue')
            }
        ],
=======
            {path: 'aboutUs',component: AboutUs},
            {path: 'aboutMs',component: () => import('../components/Coffee/AboutMs.vue')}
        ]

>>>>>>> 861c1d8236d8da03aed4b61c73118a4dcef4c00a:src1/router/index.js
        component: CoffeeView

    },
    // 社区
    {
        path: "/home",
        name: "home1",
        component: HomeView,
        children: [{
            path: "faxian",
            name: "FaXian",
            component: FaXian
          },
          {
            path: "zuire",
            name: "zuire",
            component: ZuiRe
          },
          {
            path: "biduan",
            name: "biduan",
            component: BiDuan
          },
          {
            path: "daihuida",
            name: "daihuida",
            component: DaiHuida
          },
          {
            path: "mianshi",
            name: "mianshi",
            component: MianShi
          },
          {
            path: "name",
            name: "name",
            component: NaMe
          },
          {
            path: "ribao",
            name: "ribao",
            component: RiBao
          },
          {
            path: "shuju",
            name: "shuju",
            component: ShuJu
          },{
            path: "zhuanlan",
            name: "zhuanlan",
            component: ZuanLan
          },

        ]
    },
    // 招聘
    {
        path: "/Engage",
        name: "Engage",
        component: EngageView
    },
    // 活动
    {
        path: "/Activity",
        name: "Activity",
<<<<<<< HEAD:src/router/index.js
        component: ActivityView,
=======

        component: ActivityView

>>>>>>> 861c1d8236d8da03aed4b61c73118a4dcef4c00a:src1/router/index.js
        component: ActivityView,
        redirect: "/Activity/ActivityAll",
        children: [{
            path: "ActivityAll",
            component: () =>
                import ("@/components/activity/ActivityAll")
        }, {
            path: "ActivityTop",
            component: () =>
                import ("@/components/activity/ActivityTop")
        }, {
            path: "ActivityBtm",
            component: () =>
                import ("@/components/activity/ActivityBtm")
        }]
<<<<<<< HEAD:src/router/index.js
=======

>>>>>>> 861c1d8236d8da03aed4b61c73118a4dcef4c00a:src1/router/index.js
    },
    // App下载
    {
        path: "/App",
        name: "App",
        component: AppView
    },
    // 搜索
    {
        path: "/Search",
        name: "Search",
<<<<<<< HEAD:src/router/index.js
=======

>>>>>>> 861c1d8236d8da03aed4b61c73118a4dcef4c00a:src1/router/index.js
        component: SearchView,
        redirect: "/Search/all",
        children: [{
                path: "all",
                component: All
            },
            {
                path: "question",
                component: Questions
            },
            {
                path: "essay",
                component: Essay
            }
<<<<<<< HEAD:src/router/index.js
        ],
        component: SearchView

    }
];

const router = new VueRouter({
    linkActiveClass: 'active',
=======
        ]

        component: SearchView

    },
];

const router = new VueRouter({

=======
    linkActiveClass: 'active',

>>>>>>> 861c1d8236d8da03aed4b61c73118a4dcef4c00a:src1/router/index.js
    routes,
});

export default router;